/**
 *  本地存储的util类 
 */
const USER_KEY = 'user_key'
const localStorageUtils={
    saveUser(user) {
        localStorage.setItem(USER_KEY,JSON.stringify(user))
    },

    getUser(){
        return JSON.parse(localStorage.getItem(USER_KEY)) || {}
    },

    remvoeUser(){
        localStorage.removeItem(USER_KEY)
    }
}
export default localStorageUtils